<template>
	<view class="">
		<u-popup :show="signShow" mode="center" @close="closesign">
			<view class="signpopup">
				<view class="signpopup-topImg"></view>
				<view class="signpopup-waiImg">
					<view class="signpopup-waiImg-title">
						<text>明日签到</text>
						<text style="margin-left: 26rpx;">+10000金币</text>
					</view>
					<view class="signpopup-waiImg-baidiImg">
						<view class="baidiImg-title">已连续签到1天</view>
						<view class="baidiImg-list">
							<view class="baidiImg-list-item" v-for="(item,index) in firstList" :class="[index==0?'activebaid':'']">
								<view class="">{{item.name}}</view>
									<image src="../../image/jinbi.png" mode="" v-if="index == 0" style="width: 55rpx;height: 55rpx;"></image>
									<image src="../../image/lihe.png" mode="" v-else-if="index == 1" style="width: 57rpx;height: 63rpx;"></image>
									<image src="../../image/qushuiyin.png" mode="" v-else style="width: 59rpx;height: 56rpx;"></image>
								<view class="">{{item.num}}金币</view>
							</view>
						</view>
						<view class="baidiImg-list">
							<view class="baidiImg-list-item" v-for="(item,index) in 4">
								<view class="">第{{index + 4}}天</view>
								<image src="../../image/qushuiyin.png" mode="" style="width: 59rpx;height: 56rpx;"></image>
								<view class="">200金币</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		props: {
			signShow: {
				type: Boolean,
				default: true
			}
		},
		data() {
			return {
				firstList: [
					{
						name: '第1天',
						img: '../../image/jinbi.png',
						num: '200',
						wid:'55',
						hei:''
					},
					{
						name: '明日可领',
						img: '../../image/lihe.png',
						num: '3000',
						wid:'57',
					},
					{
						name: '第3天',
						img: '../../image/qushuiyin.png',
						num: '3000',
						wid:'59',
					},
				]
			}
		},
		methods:{
			closesign(){
				this.$emit('update:signShow',false)
			}
		}
	}
</script>

<style lang="scss" scoped>
	/deep/ .u-popup__content {
		background-color: transparent !important;
	}
    .activebaid{
		background-image: url('../../image/Group_29.png') !important;
		color: #FF737F !important;
	}
	.signpopup {
		display: flex;
		align-items: center;
		flex-direction: column;
		position: relative;

		&-topImg {
			background-image: url('../../image/topjinbi.png');
			width: 483rpx;
			height: 288rpx;
			background-size: 100% 100%;
			background-repeat: no-repeat;
			position: absolute;
			top: -220rpx;
			z-index: -1;
		}

		&-waiImg {
			background-image: url('../../image/jianbian.png');
			width: 638rpx;
			height: 562rpx;
			background-size: 100% 100%;
			background-repeat: no-repeat;
			display: flex;
			flex-direction: column;
			align-items: center;

			// justify-content: center;
			&-title {
				font-family: Inter, Inter;
				font-weight: normal;
				font-size: 40rpx;
				color: #FFFFFF;
				height: 120rpx;
				line-height: 120rpx;
			}

			&-baidiImg {
				background-image: url('../../image/signbaidi.png');
				width: 579rpx;
				height: 410rpx;
				background-size: 100% 100%;
				background-repeat: no-repeat;
				display: flex;
				flex-direction: column;
				align-items: center;

				.baidiImg-title {
					font-family: Noto Sans SC, Noto Sans SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #E23D08;
					margin: 15rpx 0rpx 27rpx;
				}

				.baidiImg-list {
					display: flex;
					align-items: center;
					margin-bottom: 31rpx;

					&-item {
						background-image: url('../../image/Group_30.png');
						width: 114rpx;
						height: 142rpx;
						background-size: 100% 100%;
						background-repeat: no-repeat;
						display: flex;
						flex-direction: column;
						align-items: center;
						margin-right: 18rpx;
						color:#EF7542;
						font-family: Noto Sans SC, Noto Sans SC;
						font-weight: bold;
                        justify-content: center;
						view {
							&:nth-child(1) {
								margin-bottom: 10rpx;
								font-size: 18rpx;
                                margin-top: -2rpx;
							}

							&:nth-child(3) {
								font-size: 20rpx;
								margin-top: 10rpx;
							}
						}
					}
				}
			}
		}
	}
</style>